package com.sgb.kjwl.model.entity.transport;

import java.io.Serializable;

/**
 * @Author : 熊丽
 * @date :2021/7/21 0021$ 9:48$
 * @Description ://v2.0.8 竞价单位$
 */
public class GoodsOfferUnits implements Serializable {
    private String  freight;	//报价单价
    private String  name;//联系人
    private Integer offerType;	//报价类型
    private String  offerUnit;	//竞价单位
    private String  telPhone;
    private Integer isSelfOffer;//是否本人报价 0:不是 1：是
    //2.2.1新增
    private String allFreight;
    /**
     * 1：元/趟，2：元/吨，3：元/方
     */
    private Integer freightUnit;

    public String getFreight() {
        return freight;
    }

    public void setFreight(String freight) {
        this.freight = freight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOfferType() {
        return offerType;
    }

    public void setOfferType(Integer offerType) {
        this.offerType = offerType;
    }

    public String getOfferUnit() {
        return offerUnit;
    }

    public void setOfferUnit(String offerUnit) {
        this.offerUnit = offerUnit;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public Integer getIsSelfOffer() {
        return isSelfOffer;
    }

    public void setIsSelfOffer(Integer isSelfOffer) {
        this.isSelfOffer = isSelfOffer;
    }

    public String getAllFreight() {
        return allFreight;
    }

    public void setAllFreight(String allFreight) {
        this.allFreight = allFreight;
    }

    public Integer getFreightUnit() {
        return freightUnit;
    }

    public void setFreightUnit(Integer freightUnit) {
        this.freightUnit = freightUnit;
    }
    public String getFreightUnitType() {
        String str = "";//*1：元/趟，2：元/吨，3：元/方
        if (freightUnit == null) {
            str = "元/吨";
            return str;
        }
        switch (freightUnit) {
            case 1:
                str = "元/趟";
                break;
            case 3:
                str = "元/方";
                break;
            default:
                str ="元/吨";
                break;
        }
        return str;
    }


    @Override
    public String toString() {
        return "GoodsOfferUnits{" +
                "freight='" + freight + '\'' +
                ", name='" + name + '\'' +
                ", offerType=" + offerType +
                ", offerUnit='" + offerUnit + '\'' +
                ", telPhone='" + telPhone + '\'' +
                ", isSelfOffer=" + isSelfOffer +
                ", allFreight='" + allFreight + '\'' +
                ", freightUnit=" + freightUnit +
                '}';
    }
}
